home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1990 / Feb 90 / MacApp.Tech$ 2⁄9⁄90 / 0631-Re[2] More On Unload-Feb90 < prev    next >
Encoding:
Text File  |  1991-03-06  |  948 b   |  28 lines  |  [TEXT/GEOL]

  1. Item forwarded  by  A33          to A34
  2.  
  3. Item    5337630                         7-Feb-90        18:18PST
  4.  
  5. From:   D4695                           Skywalker Sys, Scott Collins,PRT
  6.  
  7. To:     ROSENSTEIN1                     Rosenstein, Larry
  8.         MACAPP.TECH$                    MacApp Technical
  9.  
  10. Sub:    Re: RE>More On UnloadAllSegs
  11.  
  12. Hello,
  13.  
  14.     Calling UnloadAllSegs from a resident segment is not sufficient.  No return
  15. address in the stack chain may return to a unloadable segment reguardless of
  16. whether you are currently executing code in a resident segment.
  17.  
  18.     One possible solution (that has been used) is entry and exit calls (like
  19. %_BP et. al.) that count uses of segments.  Entering a routine would increment
  20. the usage count of its segment.  Leaving it would decrement.  No segment with a
  21. non-zero count may be unloaded.
  22.  
  23. hope this helps (or can I say that)
  24.     -- Scott Collins
  25.  
  26. PS - what is InsideOut and where is sundesk.
  27.  
  28.